package com.pattern.design.designpattern.Diedaiqi;

import java.util.ArrayList;
import java.util.List;

/**
 * author:harisucici on 2018/10/10 17:27
 * email:harisucici@gmail.com
 * name:
 * todo:
 */
public class CompanyB implements CompanyRongqi{
    private Employee[] list = new Employee[5];

    /**
     * Instantiates a new Company b.
     */
    public CompanyB(){
        for(int i = 0;i<list.length;i++){
            list[i] = new Employee("BBB"+i,i+20,"女","开发"+i);
        }
    }

    /**
     * Get employee employee [ ].
     *
     * @return the employee [ ]
     */
    public Employee[] getEmployee(){
        return list;
    }

    @Override
    public Diedaiqi diedaiqi() {
        return new CompanyBDiedaiqi(list);
    }
}
